$(function(){ 
   $("#confirm").click(function(){
        var str = "" ;
        $("[name=delid]:checkbox:checked").each(function(){
            str += $(this).val() + "|" ;
        });
        $.ajax({
            type: "POST",
			url: "drugManageAction!drugInStorage.do?",
			data:"drug_Ids="+str,
			dataType: 'text',
			async: false,
			error:function(data){
				
			},
			success: function(data){
			           
            }										
	
        });
   
	    $("body").attr("onunload","window.opener.location.reload();window.close();") ;
    });
});